package com.sikaryofficial.backend.domain.dto.req.information;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.backend.constant.SearchBusinessEnum;
import com.sikaryofficial.common.core.annotation.SqlEscapeDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * 文章标题检索列表请求入参
 *
 * @author qinjinyuan
 * @date 2023-10-30
 */
@Getter
@Setter
@ToString
@ApiModel(value = "文章标题检索列表请求入参", description = "文章标题检索列表请求入参")
public class ArticleAssociateListReq extends PageDomain {
    @ApiModelProperty(value = "标题检索:左匹配")
    @Length(max = 500, message = "keyword could not greater than 500 characters")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String headline;

    /**
     * 业务类型
     * {@link SearchBusinessEnum}
     * 文章：article
     * 店铺：store
     */
    @ApiModelProperty(value = "业务类型")
    private String businessCode;

    @JsonIgnore
    private Integer tenantId;
}
